package com.ttmall.controller;

import com.ttmall.common.pojo.TaotaoResult;
import com.ttmall.service.ItemParamItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by GalaIO on 2018/1/18.
 */
@RestController
@RequestMapping("/item/param/item/")
public class ItemParamItemController {

    @Autowired
    private ItemParamItemService itemParamItemService;

    @RequestMapping("{itemId}")
    public TaotaoResult getItemParamItemByItemId(@PathVariable Long itemId) {
        return itemParamItemService.getItemParamItemByItemId(itemId);
    }
}
